package chapter6;

public class Math {
	public static void main(String[] args){
		if (Double.isNaN(Double.NaN)){
			System.out.println("NaN check!");
		}
		System.out.println("Double not a number:"+Double.NaN);
		Double d1 = new Double(Double.POSITIVE_INFINITY);
		System.out.println("Double positive infinity:"+d1);
		Double d2 = new Double(Double.NEGATIVE_INFINITY);
		System.out.println("Double negative infinity:"+d1);
	}
}
